package org.jeecg.modules.hbjh.jsvo;



import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 单据推送明细对象
 *
 */

@Data
public class JsXxDjtsMx implements Serializable
{
    private static final long serialVersionUID = 1L;
    /**
     *   商品行号
     */
    @NotNull(message = "商品行号不能为空")
    @Min(value = 1,message = "商品行号不合法")
    private String djhh;

    /**
     *   商品代码
     */

    private String spdm;

    /**
     *   商品名称
     */

    private String spmc;

    /**
     *   规格型号
     */
    @Length(max = 100,message = "规格型号最多100位字符")
    private String ggxh;

    /**
     *   计量单位
     */

    private String jldw;

    private String sppc;//商品批次

    /**
     *   商品数量
     */
    private BigDecimal spsl;

    /**
     *   含税单价
     */
    private BigDecimal hsdj;

    /**
     *   不含税单价
     */
    private BigDecimal bhsdj;

    /**
     *   含税金额
     */
    private BigDecimal hsje;

    /**
     *   不含税金额
     */
    private BigDecimal bhsje;

//    /**
//     * 税额
//     */
//    private String se;


    /**
     *   税率
     */
    @NotBlank(message = "税率不能为空")
    private BigDecimal tax;

    /**
     *   分类代码
     */

    private String spfl;

    /**
     *   税收编码
     */

    private String spbm;

    /**
     *   零税率标识
     */
    private String lslbs;

    /**
     *   优惠政策标识 0 使用  1 不使用
     */

    private String yhzcbs;


    /**
     * 优惠政策
     * 简易征收","01" "稀土产品","02"
     * "免税","03" "不征税","04"
     * "先征后退","05" "100%先征后退","06"
     * "50%先征后退","07" "按3%简易征收","08"
     * "按5%简易征收","09"  "按5%简易征收减按1.5%计征","10"
     * "即征即退30%","11" "即征即退50%","12"
     * "即征即退70%","13" "即征即退100%","14"
     *  "超税负3%即征即退","15" "超税负8%即征即退","16"
     *  "超税负12%即征即退","17" "超税负6%即征即退","18"
     */
    private String yhzc;

    /**
     *   增值税特殊管理
     */

    private String zzstsgl;

    /**
     *   折扣金额
     */
    private BigDecimal zkje;



    //销货单号
    private String kz1;
    //销货序号
    private String kz2;
    //销单号
    private String kz3;

}
